#pragma once
#include "IDataWriter.h"
#include <fstream>
using std::ofstream;

class TextWriter: public IDataWriter
{
public:
	TextWriter(char* path):f(path){}
	~TextWriter()  {  f.close(); }
	virtual void putChar(char c)  {  f<<c;  }
private:
	ofstream f;
};
